import { defineManifest } from '@crxjs/vite-plugin'

export default defineManifest({
  name: "新标签页",
  description: "浏览器插件导航页",
  version: "1.0",
  manifest_version: 3,
  icons: {
    16: 'img/l-16.png',
    32: 'img/l-32.png',
    48: 'img/l-64.png',
    128: 'img/l-128.png',
  },
  // action: {
  //   default_popup: 'popup.html',
  //   default_icon: 'img/logo-48.png',
  // },
  // options_page: 'options.html',
  // devtools_page: 'devtools.html',
  // background: {
  //   service_worker: 'src/background/index.js',
  //   type: 'module',
  // },
  content_scripts: [
    {
      matches: ['http://*/*', 'https://*/*'],
      js: ['src/contentScript/index.js'],
    },
  ],
  // side_panel: {
  //   default_path: 'sidepanel.html',
  // },
  web_accessible_resources: [
    {
      resources: ['img/logo-16.png', 'img/logo-34.png', 'img/logo-48.png', 'img/logo-128.png'],
      matches: [],
    },
  ],
  permissions: ['sidePanel', 'storage','bookmarks',"search",'tabs','favicon'],
  chrome_url_overrides: {
    newtab: 'newtab.html',
  },
})
